<template>
	<div><h1>这是Prod_B子组件</h1></div>
	{{ bNum }}
	<button @click="btn">按钮</button>
</template>

<script setup>
const bNum = inject('changeNum');

const btn = () => {
	bNum.value = 200;
	console.log('b组件', bNum);
};
</script>
